package com.jl.commons.result;

import java.util.List;

/**
 * 保留的分页的数据
 * @param <T>
 */
public class PageDataInfo<T> {
    /**
     * 数据集合
     */
    private List<T> records;
    /**
     *每页的数据条数
     */
    private long size;
    /**
     *当前页数
     */
    private long current;
    /**
     *数据总数
     */
    private long total;

    public PageDataInfo(){
        this.size = 10;
        this.current = 1;
    }

    public List<T> getRecords() {
        return records;
    }

    public void setRecords(List<T> records) {
        this.records = records;
    }

    public long getSize() {
        return size;
    }

    public void setSize(long size) {
        this.size = size;
    }

    public long getCurrent() {
        return current;
    }

    public void setCurrent(long current) {
        this.current = current;
    }

    public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }
}
